package com.woniu.adapter;

import com.woniu.outlet.dao.ProProgressMapper;
import com.woniu.outlet.po.ProProgress;
import com.woniu.outlet.redis.ERPRedisRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ProProgressAdapter {
    @Autowired
    private ERPRedisRepo erpRedisRepo;
    @Autowired
    private ProProgressMapper proProgressMapper;


    public void addProProgress (ProProgress proProgress) {
        erpRedisRepo.deleteList("proProgressList");
        proProgressMapper.insertSelective(proProgress);
    }

//    public void


}
